package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

// AliyunShortMessageReq 阿里云短信所需要的参数
type AliyunShortMessageReq struct {
	g.Meta `path:"/third-party/aliyun/send-short" tags:"第三方平台模块" method:"post" summary:"发送短信(阿里云平台)"`
	Phone  string `json:"phone"   v:"required|phone#请填写手机号|手机号不正确" dc:"手机号码"`
}

// AliyunUploadFileReq 阿里云上传文件(oss)
type AliyunUploadFileReq struct {
	g.Meta `path:"/third-party/aliyun/upload-file" tags:"第三方平台模块" method:"post" summary:"阿里云上传文件(oss)"`
	File   *ghttp.UploadFile `json:"file" type:"file" dc:"选择文件上传"`
}

// TenXunMapBicyclingReq 计算两地间的骑行距离
type TenXunMapBicyclingReq struct {
	g.Meta `path:"/third-party/tenxun/map/bicycling" tags:"第三方平台模块" method:"post" summary:"计算两地间的骑行距离"`
	From   string `json:"from" dc:"起点位置坐标，格式：lat,lng" v:"required#请填写起点位置坐标"`
	To     string `json:"to" dc:"终点位置坐标，格式：lat,lng" v:"required#请填写终点位置坐标"`
}
